<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="org.jeecgframework.web.util.StaticValue" %>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="org.jeecgframework.web.system.pojo.base.CbsServiceLogEntity" %>
<%@include file="/context/mytags.jsp"%>
<html>
<head>
    <title>光管翻新验收单</title>
    <t:base type="jquery,easyui,tools,DatePicker"></t:base>
    <link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
    <script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.min.js"></script>
    <script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
</head>
<script>
    function lookImg(obj) {
        //alert(id)
        addOneTab('预览','cbsServiceController.do?openViewFile&fileid='+obj.id)
    }

</script>
<body>
<c:if test="${empty lightReport}">
    <div style="font-size: 20px;"> ${fail}</div>
</c:if>
<c:if test="${not empty lightReport}">
<div style="margin-bottom:10px;">
    <%--<div style="text-align: center; width: 100%; ">
        <a class="easyui-linkbutton l-btn" onclick="close()">关闭</a>
    </div>--%>
</div>

<form id="dataForm" name="dataForm" action="" method="post">
<div class="subtitle">
    <p>完工报告</p>
    <table class="nobordertable noborder" id="serviceData">
            <input id="serviceId" hidden="hidden" name="serviceId" value="${lightReport.serviceId.id}">
            <input id="lightReportId" hidden="hidden" name="serviceId" value="${lightReport.id}">
        <tbody>
        <tr>
            <td class="al_r" width="20%">
                <label>预计上门时间:</label>
            </td>
            <td width="30%">
                <fmt:formatDate value="${lightReport.orderTime}" type="date" pattern="yyyy-MM-dd"></fmt:formatDate>
            </td>
            <td class="al_r" width="20%">
                <label>实际上门时间:</label>
            </td>
            <td width="30%">
                <fmt:formatDate value="${lightReport.actualTime}" type="date" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>上门次数:</label>
            </td>
            <td width="30%">
                ${lightReport.sceneTotal}次
            </td>
            <td class="al_r" width="20%">
                <label>服务完工时间:</label>
            </td>
            <td width="30%">
                <fmt:formatDate value="${lightReport.finishTime}" type="date" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%" valign="top">
                <label>影院名称:</label>
            </td>
            <td width="30%" valign="top">
                ${lightReport.cinemaName}
            </td>
            <td class="al_r" width="20%" valign="top">
                <label>影院地址:</label>
            </td>
            <td width="30%" valign="top">
                <select name="province" style="width:100px" id="province" onchange="getCity()" disabled="disabled">
                            <option>${lightReport.sheng.territoryName}</option>
                </select>
                <select style="width:100px" id="city" name="city" disabled="disabled">
                            <option >${lightReport.shi.territoryName}</option>
                </select>
                </br></br>
                    ${lightReport.address}
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>所属院线:</label>
            </td>
            <td width="30%">
                ${lightReport.typeIntherterName}
            </td>
            <td class="al_r" width="20%">

            </td>
            <td width="30%">

            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>联系人:</label>
            </td>
            <td width="30%">
                ${lightReport.contactsName}
            </td>
            <td class="al_r" width="20%">
                <label>电话:</label>
            </td>
            <td width="30%">
                ${lightReport.phone}
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">
                <label>放映机序列号:</label>
            </td>
            <td width="30%">
                ${lightReport.sn}
            </td>
            <td class="al_r" width="20%">
                <label>放映机型号:</label>
            </td>
            <td width="30%">
                ${lightReport.equipmentType.typeDesc}
            </td>
        </tr>
        </tbody>
    </table>

    <div class="line"></div>
    <div style="text-align: center; font-weight: bold;font-size:17px;">现场信息记录</div>
    <table class="nobordertable noborder">
        <tbody>
        <tr>
            <td class="al_r" width="20%">
                <label>完工单附件:</label>
            </td>
            <td width="30%">
                <c:forEach items="${finishFileList}" var="file">
                    <input id="filePicId"${file.id} name="fileName" hidden="hidden" value="${file.id}'">
                    <%--<span class="color-blue" id="${file.id}" onclick="lookImg(this)" name="fileNames">${file.oldFileName}</span>&emsp;--%>
                    <a style="color: blue;text-decoration: underline" href="fileUploadController.do?downLoadFile&fileLogId=${file.id}">${file.oldFileName}</a>&emsp;
                </c:forEach>
            </td>
            <td class="al_r" width="20%">

            </td>
            <td width="30%">

            </td>
        </tr>

        <tr>
            <td class="al_r" width="20%">
                <label>现场照片:</label>
            </td>
            <td colspan="3">
                <select id="photoType" name="photoType" style="width: auto;" disabled="disabled">
                        <option value="${photoTypes.typecode}">${photoTypes.typename}</option>
                </select>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%"></td>
            <td colspan="3">
                <c:forEach items="${photoFileList}" var="file">
                    <input id="filePicId"${file.id} name="fileName" hidden="hidden" value="${file.id}'">
                    <%--<span class="color-blue" id="${file.id}" onclick="lookImg(this)" name="fileNames">${file.newFileName}</span>&emsp;--%>
                    <a style="color: blue;text-decoration: underline" href="fileUploadController.do?downLoadFile&fileLogId=${file.id}">${file.newFileName}</a>&emsp;
                </c:forEach>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%">

            </td>
            <td colspan="3">
                <span class="color-org">提示：</span>
                <span class="color-hui">以上测试图照片需在无遮掩状态下拍照完整画面，并且聚焦清晰。如有异常需增加细节照片，并在整体照片中圈画出异常位置。</span>
            </td>
        </tr>
        </tbody>
    </table>
    <div class="line"></div>
    <div><span style="font-weight: bold;">翻新光管外观检查</span></div>
    <table class="nobordertable noborder">
        <tbody>
        <tr>
            <td class="al_r" width="20%">
                <label>光管外观是否损坏:</label>
            </td>
            <td width="30%">
                <select name="isBad" id="isBad" disabled="disabled">
                    <c:if test="${lightReport.isError==1}">
                        <option value="1">是</option>
                    </c:if>
                    <c:if test="${lightReport.isError!=1}">
                        <option value="0">否</option>
                    </c:if>
                </select>
            </td>
            <td class="al_r" width="20%">
                <label>光管各组件是否齐全:</label>
            </td>
            <td width="30%">
                <select name="isComplete" id="isComplete" disabled="disabled">
                    <c:if test="${lightReport.isComplete==1}">
                        <option value="1" selected="selected">是</option>
                    </c:if>
                    <c:if test="${lightReport.isComplete!=1}">
                        <option value="0" selected="selected">否</option>
                    </c:if>
                </select>
            </td>
        </tr>
        <tr>
            <td class="al_r" width="20%" valign="top">
                <label>异常说明:</label>
            </td>
            <td colspan="3">
                <span class="color-red">以上情况如有异常或存在其他问题，请做详细描述，并拍照片反馈巴可，同时立即告知影院。</span>
                <textarea id="errorDes" name="errorDes" style="width: 100%; height: 60px;" readonly="readonly">${lightReport.ycDes}</textarea>
            </td>
        </tr>
        </tbody>
    </table>
    <div class="line"></div>
    <div><span style="font-weight: bold;">测试数据</span></div>
    <table class="ftable" style="margin-top:10px;">
        <tr>
            <th></th>
            <th>光管序列号</th>
            <th>中心亮度FL</th>
            <th>对比度</th>
            <th>均匀性</th>
        </tr>
        <tr>
            <td>翻新前</td>
            <td ><input id="front_sn" name="front_sn" value="${lightReport.frontSn}" readonly="readonly"/></td>
            <td ><input id="front_ldfl" name="front_ldfl" value="${lightReport.frontLdfl}" readonly="readonly"/></td>
            <td><input id="front_dbd" name="front_dbd" value="${lightReport.frontDbd}" readonly="readonly"/></td>
            <td ><input id="front_jyx" name="front_jyx" value="${lightReport.frontJyx}" readonly="readonly"/></td>
        </tr>
        <tr>
            <td>翻新后</td>
            <td ><input id="after_sn" name="after_sn" value="${lightReport.afterSn}" readonly="readonly"/></td>
            <td ><input id="after_ldfl" name="after_ldfl" value="${lightReport.afterLdfl}" readonly="readonly"/></td>
            <td ><input id="after_dbd" name="after_dbd" value="${lightReport.afterDbd}" readonly="readonly"/></td>
            <td ><input id="after_jyx" name="after_jyx" value="${lightReport.afterJyx}" readonly="readonly"/></td>
        </tr>
    </table>
    <div style="width: 98%; margin: 10px auto;">
        环境光亮度:&nbsp;<span>${lightReport.hjgld}</span>
    </div>
    <div class="line"></div>
    <div><span style="font-weight: bold;">画面检查</span></div>
    <div style="width: 98%; margin: 10px auto;">
        <span class="color-red">检查全黑/全白/三原色测试图，如有异常（如暗点、亮点、色斑）在下图中对应位置注明</span>
    </div>
    <table class="ftable" style="margin-top:10px;">
        <tr>
            <td width="33%">
                <div class="l-left"><textarea placeholder="左上" id="lt" name="lt" style="height: 100%;width: 100%;border: hidden;resize: none" readonly="readonly">${lightReport.llt}</textarea></div>
            </td>
            <td width="33%">
                <div class="t-top"><textarea placeholder="中上" id="ct" name="ct" style="height: 100%;width: 100%;border: hidden;resize: none" readonly="readonly">${lightReport.ct}</textarea></div>
            </td>
            <td width="33%">
                <div class="r-right"><textarea placeholder="右上" id="rt" name="rt" style="height: 100%;width: 100%;border: hidden;resize: none" readonly="readonly">${lightReport.rt}</textarea></div>
            </td>
        </tr>
        <tr>
            <td width="33%">
                <div class="l-l"><textarea placeholder="左中" id="lc" name="lc" style="height: 100%;width: 100%;border: hidden;resize: none" readonly="readonly">${lightReport.lc}</textarea></div>
            </td>
            <td width="33%">
                <div class="c-c"><textarea placeholder="中心" id="cc" name="cc" style="height: 100%;width: 100%;border: hidden;resize: none" readonly="readonly">${lightReport.cc}</textarea></div>
            </td>
            <td width="33%">
                <div class="r-r"><textarea placeholder="右中" id="rc" name="rc" style="height: 100%;width: 100%;border: hidden;resize: none" readonly="readonly">${lightReport.rc}</textarea></div>
            </td>
        </tr>
        <tr>
            <td width="33%">
                <div class="l-b"><textarea placeholder="左下" id="lb" name="lb" style="height: 100%;width: 100%;border: hidden;resize: none" readonly="readonly">${lightReport.lb}</textarea></div>
            </td>
            <td width="33%">
                <div class="c-b"><textarea placeholder="中下" id="cb" name="cb" style="height: 100%;width: 100%;border: hidden;resize: none" readonly="readonly">${lightReport.cb}</textarea></div>
            </td>
            <td width="33%">
                <div class="r-b"><textarea placeholder="右下" id="rb" name="rb" style="height: 100%;width: 100%;border: hidden;resize: none" readonly="readonly">${lightReport.rb}</textarea></div>
            </td>
        </tr>
    </table>
    <div class="line"></div>
    <div><span style="font-weight: bold;">放映机运行检查</span></div>
    <div style="width: 98%; margin: 10px auto;">
        <span class="color-red">开启放映机，如存在异常请在下方做详细描述</span>
        <textarea id="run_des" name="run_des" style="width: 100%; height: 60px; margin-top:10px" readonly="readonly">${lightReport.runDes}</textarea>
    </div>
</div>
</form>
</c:if>
</body>
</html>
